include ../../../config.mk
INCLUDE = -I../../core/include

templates = layout/default_layout.ctp layout/ajax_layout.ctp \
	test/info_view.ctp test/upload_view.ctp
layouts = layout/layout.o
views = test/test_view.o
objs = $(layouts) $(views)

target = libviews.a

.PHONY:all clean install distclean

all:$(target)

clean:
	$(RM) $(target) $(objs) $(templates)

libviews.a:$(objs)
	$(AR) $(ARFLAGS) $@ $(objs)

$(layouts):$(templates)

%.ctp:%.html
	../../core/tools/html2view -i $< -o $@ -v $(notdir $(basename $@))
